{% extends "crashstats_base.html" %}

{% block page_title %}Exploitable Crashes{% endblock %}

{% block site_js %}
  {{ super() }}
  {% javascript 'bugzilla' %}
  {% javascript 'exploitability_report' %}
{% endblock %}

{% block site_css %}
  {{ super() }}
  {% stylesheet 'bugzilla' %}
{% endblock %}

{% block content %}
  <div id="mainbody">
    <div class="page-heading">
      <h2>Exploitable Crashes for {{ product }}
      {% if version %}{{ version }}{% endif %}</h2>
    </div>

    <div class="panel">
      <div class="body">
        <table class="builds data-table">
          <thead>
            <tr>
              <th>Signature</th>
              <th>Bugzilla IDs</th>
              <th>Count HIGH</th>
              <th>Count MEDIUM</th>
              <th>Count LOW</th>
              <th>Count NONE</th>
            </tr>
          </thead>
          <tbody>
            {% for crash in crashes %}
              <tr>
                <td>
                  <a href="{{ crash.url }}">{{ crash.signature }}</a>
                </td>
                <td class="bug_ids_more">
                  {% for bug_id in crash.bugs %}
                    {{ show_bug_link(bug_id) }}
                  {% endfor %}
                </td>
                <td>
                  {{ crash.high_count }}
                </td>
                <td>
                  {{ crash.medium_count }}
                </td>
                <td>
                  {{ crash.low_count }}
                </td>
                <td>
                  {{ crash.none_count }}
                </td>
              </tr>
            {% endfor %}
          </tbody>
        </table>
      </div>
    </div>
  </div>
{% endblock %}
